package com.study.tx.common.listener;

import com.alibaba.fastjson2.JSON;
import com.study.tx.common.entity.MyTransactionEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;

/**
 * 类的描述
 *
 * @author Administrator
 * @date 2022-08-30
 */
@Slf4j
public class MyTransactionEventListener implements ApplicationListener<MyTransactionEvent> {
    @Override
    public void onApplicationEvent(MyTransactionEvent event) {
        log.info("参数:{}", JSON.toJSONString(event));
        // 业务逻辑处理
    }
}
